package com.lyfx.search.vo;

import com.lyfx.common.to.es.CourseModel;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author lsy
 * @create 2020-08-01-16:03
 */
@Data
public class SearchResult {
    /**
     * 课程信息
     */
    private List<CourseModel> courses;
    /**
     * 当前页码
     */
    private Integer pageNum;
    /**
     * 总记录数
     */
    private Long total;
    /**
     * 总页码
     */
    private Integer totalPages;
    /**
     *
     */
    private List<Integer> pageNavs;
    /**
     * 所有分类
     */
    private List<CatalogVo> catalogVos;
    /**
     * 属性
     */
    private List<AttrVo> attrs;

    /**
     * 面包屑导航
     */
    private List<CrumbVo> crumbs = new ArrayList<>();
    private List<Long> attrIds = new ArrayList<>();
    @Data
    public static class CrumbVo{
        private String crumbName;
        private String crumbValue;
        private String link;
    }
    @Data
    public static class CatalogVo{
        private Long categoryId;
        private String categoryName;
    }

    @Data
    public static class AttrVo{
        private Long attrId;
        private String attrName;
        private List<String> attrValue;
    }
}
